package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.MappedSuperclass;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * The persistent class for the PS_RS_JOB_CURR_VW database table.
 * 
 */
@MappedSuperclass
public class JobCurrPrimary implements Serializable {
	
	private static final long serialVersionUID = -7800533172012045321L;

	private BigDecimal emplRcd;

	private String emplid;

	
	public JobCurrPrimary() {
	}

	/**
	 * @param emplRcd
	 * @param emplid
	 */
	public JobCurrPrimary(BigDecimal emplRcd, String emplid) {
		this.emplRcd = emplRcd;
		this.emplid = emplid;
	}

	public BigDecimal getEmplRcd() {
		return emplRcd;
	}

	public void setEmplRcd(BigDecimal emplRcd) {
		this.emplRcd = emplRcd;
	}

	public String getEmplid() {
		return emplid;
	}

	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((emplRcd == null) ? 0 : emplRcd.hashCode());
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JobCurrPrimary other = (JobCurrPrimary) obj;
		if (emplRcd == null) {
			if (other.emplRcd != null)
				return false;
		} else if (!emplRcd.equals(other.emplRcd))
			return false;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		return true;
	}

	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	

}